package com.xiu.listener;

import java.util.EventListener;
import java.util.EventObject;


public class CusEventListener implements EventListener  {
	// 事件发生后的回调方法
    public void fireCusEvent(EventObject  e) {
        EventSourceObject eObject = (EventSourceObject) e.getSource();
        System.out.println("My name has been changed!");
        System.out.println("I got a new name,named \"" + eObject.getName() + "\"");
    }
}
